Interface: AudioNodeInit<T, R>
Type parameters
Name | Type |
---|---|
T | extends AudioNode = AudioNode |
R | extends BaseAudioNode = BaseAudioNode |
Hierarchy
Readonly
<AudioNodeProps
<T
,R
>>↳
AudioNodeInit
Properties
audioNode
• Readonly
audioNode: undefined
| T
Inherited from
Readonly.audioNode
name
• Readonly
name: string
Inherited from
Readonly.name
node
• Readonly
node: undefined
| R
Inherited from
Readonly.node
outputs
• Readonly
outputs: WeakSet
<AudioNodeInit
<AudioNode
, BaseAudioNode
> | AudioParam
>
Inherited from
Readonly.outputs
toJSON
• Optional
toJSON: () => unknown
Type declaration
▸ (): unknown
Returns
unknown
Methods
connect
▸ connect(param
): void
Internal function to connect a signal output Should ONLY be CALLED inside an AudioGraph
Parameters
Name | Type | Description |
---|---|---|
param | AudioNodeInitConnectParam | The init to connect |
Returns
void
create
▸ create(context
, prevNode?
): [T
, R
]
Internal function to create the actual AudioNode. Should ONLY be CALLED inside an AudioGraph
Parameters
Name | Type | Description |
---|---|---|
context | AudioContext | Audio Context to use |
prevNode? | AudioNode | The input AudioNode for connection |
Returns
[T
, R
]
disconnect
▸ disconnect(param
): void
Internal function to disconnect a signal output Should ONLY be CALLED inside an AudioGraph
Parameters
Name | Type | Description |
---|---|---|
param | AudioNodeInitConnectParam | The init to disconnect |
Returns
void
hasConnectedTo
▸ hasConnectedTo(init
): boolean
Check if there is a connection to the provided init
Parameters
Name | Type | Description |
---|---|---|
init | AudioNodeInit <AudioNode , BaseAudioNode > | AudioParam | AudioNodeInit |
Returns
boolean
release
▸ release(): void
Internal function to release the node init resources Should ONLY be CALLED inside an AudioGraph
Returns
void